package com.oceansoft.mobile.biz.admin.service;

import java.util.List;

import com.oceansoft.mobile.biz.admin.entity.BasesiteArticleNews;
import com.oceansoft.mobile.biz.admin.entity.BasesiteChannel;
import com.oceansoft.mobile.common.base.entity.Pager;
import com.oceansoft.mobile.common.base.entity.Query;
import com.oceansoft.mobile.common.base.entity.Result;

public interface IBasesiteService {
	 /**
	  * 分页加载商家栏目列表
	 * @param mer_id
	 * @param query
	 * @return
	 */
	Pager<BasesiteChannel> loadChannelByPage(long mer_id, Query query);
	
	public Result saveOrUpdate(BasesiteChannel channel);
	
	/**
    * 删除指定编号栏目信息
    *
    * @param channelId 栏目编号
    * @return Result
    */
   Result deleteChannelById(long channelId);
   
   public BasesiteChannel loadChannelById(long channelId) ;
   
   public List<BasesiteChannel> loadChannelByMerchantId(long merchantId) ;
   
   public List<BasesiteChannel> loadAllChannelByMerchantId(long merchantId);
   
   /**
    * 分页加载产品数据信息
    *
    * @param merchantId 商家编号
    * @param query      查询条件
    * @return Pager<ArticleNews>
    */
   Pager<BasesiteArticleNews> loadArticleNewsByPage(long merchantId, Query query);
   
   public Result updateColunmByName(long pk, String prop, String val);
   
   public Result deleteArticleById(long sid) ;
   
   public Result saveOrUpdate(BasesiteArticleNews art);
   
   public BasesiteArticleNews loadArticleById(long sid) ;
   
   public List<BasesiteArticleNews> loadArticlesByMerchantId(long merchantId,long channel_id);
   
   public List<BasesiteArticleNews> loadArticlesListByMerchantId(long merchantId,long channel_id);
   
   
   
   public List<BasesiteArticleNews> loadArticles0PreNDays(int n);
  	public List<BasesiteArticleNews> loadArticlesByGroupPreNDays(int group,int n);

}
